package com.zpark.cart;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author YS
 * @version 1.0
 * @Date 2024/5/15 22:49
 */
@EnableFeignClients
@MapperScan("com.zpark.cart.mapper")
@SpringBootApplication
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
    // 注入ResttTemplate(远程调用)
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
